﻿@model IEnumerable<BanDTBLL.san_pham>

@{
    ViewBag.Title = "Index";
}
<div class="load_san_pham">
    <h2 class="tieude">
        SẢN PHẨM MỚI </h2>
    @foreach (var item in ViewBag.SanPhamMoi)
    {
    
        <div class="san_pham">
            <img src="@Url.Content("~/Content/Images/sanpham/" + item.hinh)" alt="hinh" /><br />
            <label>Tên :</label> <span>@item.ten</span> <br />
             <label>Giá</label><span>@item.donGia</span> VNĐ <br />
             <p style="text-align:center">
                <input type="submit" value="Mua hàng" class="button" /> <input type="button" value="Chi tiết" class="button" />
             </p>
        </div>
    }
    </marquee>
</div>
<div class="load_san_pham">
    <h2 class="tieude">
        SẢN PHẨM KHUYẾN MÃI</h2>
    @foreach (var item in ViewBag.SanPhamKM)
    {
    
        <div class="san_pham">
            <img src="@Url.Content("~/Content/Images/sanpham/" + item.hinh)" alt="hinh" /><br />
            <label>Tên :</label> <span>@item.ten</span> <br />
             <label>Giá</label><span>@item.donGia</span> VNĐ <br />
             <p style="text-align:center">
                <input type="submit" value="Mua hàng" class="button" /> <input type="button" value="Chi tiết" class="button" />
             </p>
        </div>
    }
</div>
